package com.cskaoyan.wx.controller;


import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.service.HomeService;
import com.cskaoyan.wx.vo.HomeIndexVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/home")
public class HomeController {


    @Autowired
    HomeService homeService;

    @GetMapping("index")
    public BaseRespVo index() {

        HomeIndexVO vo = homeService.getIndex();
        return BaseRespVo.ok(vo);
    }

}
